package com.chalk.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.chalk.dao.OrgDao;
import com.chalk.model.Org;
import com.chalk.service.OrgService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author glq
 * @since 2020-12-21
 */

@Service
public class OrgServiceImpl extends ServiceImpl<OrgDao, Org> implements OrgService {

        @Override
        public int addOrg(Org entity){
        return baseMapper.insert(entity);
        }

        @Override
        public int updateOrg(Org entity){
        return baseMapper.updateById(entity);
        }


        @Override
        public int deleteOrg(Integer id){
        return baseMapper.deleteById(id);
        }
}
